From: Juergen Gross Date: Wed, 20 Apr 2022 07:31:18 +0000 (+0200) Subject: tools/libs/guest: don't set errno to a negative value X-Git-Tag: archive/raspbian/4.17.0-1+rpi1^2~33^2~704 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=438e96ab479495a932391a22e219ee62fa8c4f47;p=xen.git tools/libs/guest: don't set errno to a negative value Setting errno to a negative error value makes no sense. Fixes: cb99a64029c9 ("libxc: arm: allow passing a device tree blob to the guest") Signed-off-by: Juergen Gross Acked-by: Andrew Cooper --- diff --git a/tools/libs/guest/xg_dom_core.c b/tools/libs/guest/xg_dom_core.c index c17cf9f712..c4f4e7f3e2 100644 --- a/tools/libs/guest/xg_dom_core.c +++ b/tools/libs/guest/xg_dom_core.c @@ -855,7 +855,7 @@ int xc_dom_devicetree_file(struct xc_dom_image *dom, const char *filename) return -1; return 0; #else - errno = -EINVAL; + errno = EINVAL; return -1; #endif }